using System;
using System.Collections;
using System.Collections.Generic;
using GameFramework.common;
using GameFramework.events;
using GameFramework.timer;
using GameFramework.UI;
using UnityEngine;
using UnityEngine.UIElements;
using Event = UnityEngine.Event;

namespace Game.ui
{
    [View(SceneViewManagerName = SceneViewManagerNames.Home)]
    [Presenter(type = typeof(GameInitingPresenter))]
    public class GameInitingView : BaseView
    {

        [UIBind(ClassName = "loadingbar-front")]
        private VisualElement  processBar;

        [UIBind(ClassName = "loadingbar-bg")] 
        private VisualElement loadingbarBg;
        
        public override void afterShow()
        {
            processBar.AddToClassList("startProgress");
            
            MVPEventManager.Instance.LoadinView_V2P_Show?.Invoke();
            
        }
        

        public override void beforeHide()
        {
            base.beforeHide();
            processBar.RemoveFromClassList("startProgress");
        }
    }
}


